# Contributor:
# Maintainer: Kristóf Jakab <jakab.kristof@balasys.hu>
pkgname=py3-py-radix
_pkgname=py-radix
pkgver=0.10.0
pkgrel=5
pkgdesc="An implementation of a radix tree for Python"
url="https://github.com/mjschultz/py-radix"
arch="all"
license="BSD-4-Clause AND ISC"
depends="python3"
makedepends="py3-setuptools python3-dev"
checkdepends="py3-coverage py3-nose"
source="$_pkgname-$pkgver.tar.gz::https://github.com/mjschultz/py-radix/archive/v$pkgver.tar.gz
	python3.10-support.patch
	"
builddir="$srcdir/$_pkgname-$pkgver"

replaces=py-radix # Backwards compatibility
provides=py-radix=$pkgver-r$pkgrel # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
b4b6a35aad76c19c2eaa5bff828cbec5182cc4074397d4b9e5c39ac76bd9045c86600ed52ac06632abac8a9e70d6e82aa9e741ab3eb92970453bb14acdba72ea  py-radix-0.10.0.tar.gz
56808e892ebcc951f76bfb21647687ccf8c2d3e605c64c650ca95e54a766e8f110bfa087fdc1921e9ba68109dbbf8220885a9c12dcb6ef69bf7695d7722a75b0  python3.10-support.patch
"
